import request from '@/utils/request'

// 查询销售报表列表
export function listXiaoshou(query) {
  return request({
    url: '/system/xiaoshou/list',
    method: 'get',
    params: query
  })
}

// 查询销售报表详细
export function getXiaoshou(saleid) {
  return request({
    url: '/system/xiaoshou/' + saleid,
    method: 'get'
  })
}

// 新增销售报表
export function addXiaoshou(data) {
  return request({
    url: '/system/xiaoshou',
    method: 'post',
    data: data
  })
}

// 修改销售报表
export function updateXiaoshou(data) {
  return request({
    url: '/system/xiaoshou',
    method: 'put',
    data: data
  })
}

// 删除销售报表
export function delXiaoshou(saleid) {
  return request({
    url: '/system/xiaoshou/' + saleid,
    method: 'delete'
  })
}
